<?php
    $db['server']='localhost';
    $db['user']='root';
    $db['pass']='root';
    $db['database']='mk_js';
    $conn=new mysqli($db['server'],$db['user'],$db['pass'],$db['database']);
    if($conn->connect_error){
        echo "Failed to connect to MySQL:".mysqli_connect_error();
    }
   